package com.atcc.test.onlytest;

public enum CountDowns {
	
	ONE(1,"赵一"),TWO(2,"王二"),THREE(3,"张三"),FOUR(4,"李四"),FIVE(5,"麻五"),SIX(6,"老六");
	
	private int CountDowns_code;
	private String CountDowns_name;
	
	CountDowns(int CountDowns_code,String CountDowns_name) {
		this.CountDowns_code = CountDowns_code;
		this.CountDowns_name = CountDowns_name;
	}

	public int getCountDowns_code() {
		return CountDowns_code;
	}

	public String getCountDowns_name() {
		return CountDowns_name;
	}
	
	@SuppressWarnings({ "unused", "static-access" })
	public static CountDowns getCountDownName(int value) {
		CountDowns[] countDowns  =CountDowns.values();
		for (CountDowns element:countDowns) {
			if(element.CountDowns_code == value) {
				return element;
			}
		}
		return null;
	}

}
